﻿import request from '/@/utils/request';
enum Api {
  AddIotdeviceconnectlog = '/api/iotdeviceconnectlog/add',
  DeleteIotdeviceconnectlog = '/api/iotdeviceconnectlog/delete',
  UpdateIotdeviceconnectlog = '/api/iotdeviceconnectlog/update',
  PageIotdeviceconnectlog = '/api/iotdeviceconnectlog/page',
  DetailIotdeviceconnectlog = '/api/iotdeviceconnectlog/detail',
}

// 增加执行记录
export const addIotdeviceconnectlog = (params?: any) =>
	request({
		url: Api.AddIotdeviceconnectlog,
		method: 'post',
		data: params,
	});

// 删除执行记录
export const deleteIotdeviceconnectlog = (params?: any) => 
	request({
			url: Api.DeleteIotdeviceconnectlog,
			method: 'post',
			data: params,
		});

// 编辑执行记录
export const updateIotdeviceconnectlog = (params?: any) => 
	request({
			url: Api.UpdateIotdeviceconnectlog,
			method: 'post',
			data: params,
		});

// 分页查询执行记录
export const pageIotdeviceconnectlog = (params?: any) => 
	request({
			url: Api.PageIotdeviceconnectlog,
			method: 'post',
			data: params,
		});

// 详情执行记录
export const detailIotdeviceconnectlog = (id: any) => 
	request({
			url: Api.DetailIotdeviceconnectlog,
			method: 'get',
			data: { id },
		});


